import request from "./request";
export default {
  GifHybridCode() {
    return request({
      url: "/api/User/GifHybridCode",
      method: "get",
    });
  },
  Login(data) {
    return request({
      url: "/api/User/Login",
      method: "post",
      data: data,
    });
  },
  MyProfile(data) {
    return request({
      url: "/api/User/MyProfile",
      method: "post",
      data: data,
    });
  },
  ExperimentTypeOptions(data) {
    //实验类型下拉选项
    return request({
      url: "/api/ExperimentType/Options",
      method: "post",
      data: data,
    });
  },
  ExperimentPagedList(data) {
    return request({
      url: "/api/Experiment/PagedList",
      method: "post",
      data: data,
    });
  },
  ExperimentFetchModel(data) {
    return request({
      url: "/api/Experiment/FetchModel",
      method: "post",
      data: data,
    });
  },
  ReportsForMeOfStudent(data) {
    return request({
      url: "/api/Report/ReportsForMeOfStudent",
      method: "post",
      data: data,
    });
  },
  ReportsForMeOfTeacher(data) {
    return request({
      url: "/api/Report/ReportsForMeOfTeacher",
      method: "post",
      data: data,
    });
  },
  ReportFetchModel(data) {
    return request({
      url: "/api/Report/FetchModel",
      method: "post",
      data: data,
    });
  },
  CustomerExperimentPagedList(data) {
    return request({
      url: "/api/CustomerExperiment/PagedList",
      method: "post",
      data: data,
    });
  },
  HomeworkPagedList(data) {
    return request({
      url: "/api/Homework/PagedList",
      method: "post",
      data: data,
    });
  },
  HomeworkFetchModel(data) {
    return request({
      url: "/api/Homework/FetchModel",
      method: "post",
      data: data,
    });
  },
  InstrumentPagedList(data) {
    return request({
      url: "/api/Instrument/PagedList",
      method: "post",
      data: data,
    });
  },
   InstrumentDetail(data) {
    //仪器详情
    return request({
      url: "/api/Instrument/FetchModel",
      method: "post",
      data: data,
    });
  },
  InstrumentCategoryOptions(data) {
    return request({
      url: "/api/InstrumentCategory/Options",
      method: "post",
      data: data,
    });
  },
  UserRegister(data) {
    //实验报告更新
    return request({
      url: "/api/User/Register",
      method: "post",
      data: data,
    });
  },
  CustomerExperimentFetchModel(data) {
    return request({
      url: "/api/CustomerExperiment/FetchModel",
      method: "post",
      data: data,
    });
  },
  //获取我的信息
  MyUserProfile(data) {
    return request({
      url: "/api/Client/Ding/MyUserProfile",
      method: "post",
      data,
    });
  },
  // 上传头像
  UploadMyFaceImage(data) {
    return request({
      url: "/api/Client/User/UploadMyFaceImage",
      method: "post",
      data,
    });
  },
   FileUpload(file) {
    const formData = new FormData();
    formData.append('file', file);
    return request({
      url: "/api/File/Upload",
      method: "post",
      data: formData,
      headers: { "Content-Type": "multipart/form-data" },
    });
  },
  // 获取头像
  DingMyUserFace(data) {
    return request({
      url: "/api/Client/Ding/MyUserFace",
      method: "post",
      data,
    });
  },
  //首页的规章列表
  TopRegulations(data) {
    return request({
      url: "/api/Client/Regulation/TopRegulations",
      method: "post",
      data,
    });
  },
  //规章类型选项
  TypeOptions(data) {
    return request({
      url: "/api/Client/Regulation/TypeOptions",
      method: "post",
      data,
    });
  },
  //规章列表
  RegulationPagedList(data) {
    return request({
      url: "/api/Client/Regulation/PagedList",
      method: "post",
      data,
    });
  },
  //规章详情
  RegulationFetchModel(data) {
    return request({
      url: "/api/Client/Regulation/FetchModel",
      method: "post",
      data,
    });
  },
  //我参与的学习计划
  TrainTaskMyPagedList(data) {
    return request({
      url: "/api/Client/TrainTask/MyPagedList",
      method: "post",
      data,
    });
  },
  //我参与的学习计划详情
  TrainTaskFetchModelForMe(data) {
    return request({
      url: "/api/Client/TrainTask/FetchModelForMe",
      method: "post",
      data,
    });
  },
  //发起延期申请
  TrainTaskSubmitDelay(data) {
    return request({
      url: "/api/Client/TrainTask/SubmitDelay",
      method: "post",
      data,
    });
  },
  //课程类型选项
  CourseTypeOptions(data) {
    return request({
      url: "/api/Client/TrainTask/CourseTypeOptions",
      method: "post",
      data,
    });
  },
  //线上课程公开课列表
  CourseOnlinePublicPagedList(data) {
    return request({
      url: "/api/Client/CourseOnline/PublicPagedList",
      method: "post",
      data,
    });
  },
  //我参与的培训任务里包括的所有线上课程 列表
  CourseOnlineMyPagedList(data) {
    return request({
      url: "/api/Client/CourseOnline/MyPagedList",
      method: "post",
      data,
    });
  },
  //培训任务的线下课程 的培训批次
  OfflineTrainBatchPagedListForTrainTaskCourseOffline(data) {
    return request({
      url: "/api/Client/OfflineTrainBatch/PagedListForTrainTaskCourseOffline",
      method: "post",
      data,
    });
  },
  //和我有关的 培训任务的线下课程 的培训批次 tabbar页面使用
  OfflineTrainBatchPagedListForMe(data) {
    return request({
      url: "/api/Client/OfflineTrainBatch/PagedListForMe",
      method: "post",
      data,
    });
  },
  //提交预约
  OfflineTrainBatchSubmitAppointment(data) {
    return request({
      url: "/api/Client/OfflineTrainBatch/SubmitAppointment",
      method: "post",
      data,
    });
  },
  //取消预约
  OfflineTrainBatchCancelAppointment(data) {
    return request({
      url: "/api/Client/OfflineTrainBatch/CancelAppointment",
      method: "post",
      data,
    });
  },
  //线上课程选项列表--公开课搜索条件
  CourseOnlineOptions(data) {
    return request({
      url: "/api/Client/CourseOnline/Options",
      method: "post",
      data,
    });
  },
  //线下课程选项列表--预约搜索条件
  CourseOfflineOptions(data) {
    return request({
      url: "/api/Client/CourseOffline/Options",
      method: "post",
      data,
    });
  },

  //开始考试
  TrainTaskUserExamStartExam(data) {
    return request({
      url: "/api/Client/TrainTaskUserExam/StartExam",
      method: "post",
      data,
    });
  },
  //记录答题结果
  TrainTaskUserExamAnswerQuestion(data) {
    return request({
      url: "/api/Client/TrainTaskUserExam/AnswerQuestion",
      method: "post",
      data,
    });
  },
  //提交试卷
  TrainTaskUserExamFinishExam(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/TrainTaskUserExam/FinishExam",
      method: "post",
      data,
    });
  },
  //线上课程详情
  CourseOnlineFetchModel(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/CourseOnline/FetchModel",
      method: "post",
      data,
    });
  },
  //线上课程学习记录
  CourseOnlineReportStudy(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/CourseOnline/ReportStudy",
      method: "post",
      data,
    });
  },
  //判断当前用户是否可以使用培训管理
  TrainerIsTrainer(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/IsTrainer",
      method: "post",
      data,
    });
  },
  //培训管理列表
  TrainerMyOfflineTrainBatchPagedList(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/MyOfflineTrainBatchPagedList",
      method: "post",
      data,
    });
  },
  //培训师确认时间并下发
  TrainerTrainerConfirmOfflineTrainBatch(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/TrainerConfirmOfflineTrainBatch",
      method: "post",
      data,
    });
  },
  //培训师发表评价
  TrainerTrainerEvaluateOfflineTrainBatch(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/TrainerEvaluateOfflineTrainBatch",
      method: "post",
      data,
    });
  },
  //培训详情
  TrainerFetchOfflineTrainBatchModel(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/FetchOfflineTrainBatchModel",
      method: "post",
      data,
    });
  },
  //培训评价详情
  TrainerFetchOfflineTrainBatchEvaluateModel(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/FetchOfflineTrainBatchEvaluateModel",
      method: "post",
      data,
    });
  },
  //培训详情已预约人员
  TrainerAppointmentPagedList(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/AppointmentPagedList",
      method: "post",
      data,
    });
  },
  //培训详情考试科目
  TrainerTrainTaskExamSubjectPagedList(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/TrainTaskExamSubjectPagedList",
      method: "post",
      data,
    });
  },
  //培训详情考试科目
  TrainerTrainTaskExamSubjectResultPagedList(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Trainer/TrainTaskExamSubjectResultPagedList",
      method: "post",
      data,
    });
  },
  //首页消息
  MessageMyUnreadedMessagesTopN(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Message/MyUnreadedMessagesTopN",
      method: "post",
      data,
    });
  },
  //消息列表
  MessageMyPagedList(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Message/MyPagedList",
      method: "post",
      data,
    });
  },
  //消息详情
  MessageFetchModel(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Message/FetchModel",
      method: "post",
      data,
    });
  },
  //消息已读
  MessageRead(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Message/Read",
      method: "post",
      data,
    });
  },
  //消息删除
  MessageDelete(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Message/Delete",
      method: "post",
      data,
    });
  },
  //个人画像
  UserMyTrainProfile(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/User/MyTrainProfile",
      method: "post",
      data:null,
    });
  },
  //我的预约列表
  AppointmentMyPagedlist(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Appointment/MyPagedlist",
      method: "post",
      data:data,
    });
  },
   //我的违章和积分汇总
  MyPointsSummary(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Violation/MyPointsSummary",
      method: "post",
      data:data,
    });
  },
  //我的积分变更记录
  MyPointPagedList(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Point/MyPointPagedList",
      method: "post",
      data:data,
    });
  },
  //积分变更详情
  PointDetails(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Point/Details",
      method: "post",
      data:data,
    });
  },
  //创建新的违章记录学习记录
  CreateViolationStudy(data) {
    // 发送请求
    return request({
      // 请求的URL
      url: "/api/Client/Violation/CreateViolationStudy",
      method: "post",
      data:data,
    });
  },
  // 试验记录列表
  StudentExperimentPagedList(data) {
    return request({
      url: "/api/StudentExperiment/PagedList",
      method: "post",
      data:data,
    });
  },
  // 学生，我的，用户信息
  StudentMyStudentSummary(data) {
    return request({
      url: "/api/Student/MyStudentSummary",
      method: "post",
      data:data,
    });
  },
  // 学生，我的，班级列表
  ClassPagedList(data) {
    return request({
      url: "/api/Clazz/PagedList",
      method: "post",
      data:data,
    });
  },
  // 学生，我的，修改密码
  ResetUserPassword(data) {
    return request({
      url: "/api/User/ModifyPassword",
      method: "post",
      data:data,
    });
  },
  StudentJoinClass(data) {
    return request({
      url: "/api/Student/JoinClass",
      method: "post",
      data:data,
    });
  },
  StudentUpdate(data) {
    return request({
      url: "/api/Student/Update",
      method: "post",
      data:data,
    });
  },
  UserFetchModel(data) {
    return request({
      url: "/api/User/FetchModel",
      method: "post",
      data:data,
    });
  },
  UserUpdate(data) {
    return request({
      url: "/api/User/Update",
      method: "post",
      data:data,
    });
  },
  ClassStudentFetchModel(data) {
    //学生的班级详情
    return request({
      url: "/api/ClassStudent/FetchModel",
      method: "post",
      data: data,
    });
  },
  RepairCreate(data) {
    //学生的班级详情
    return request({
      url: "/api/Repair/Create",
      method: "post",
      data: data,
    });
  },
   RepairFilerCreate(data) {
    //学生的班级详情
    return request({
      url: "/api/RepairFile/Create",
      method: "post",
      data: data,
    });
  },
  StudentExperimentCreateStudentExperiment(data) {
    //开始学生实验记录,返回student_experiment_IdModel,共后续记录操作步骤使用
    return request({
      url: '/api/StudentExperiment/CreateStudentExperiment',
      method: 'post',
      data: data,
    })
  },
  TeacherExperimentCreateTeacherExperiment(data) {
    //开始教师的实验记录,返回teacher_experiment_IdModel,共后续记录操作步骤使用
    return request({
      url: '/api/TeacherExperiment/CreateTeacherExperiment',
      method: 'post',
      data: data,
    })
  },
  StudentExperimentCreateStudentExperimentStep(data) {
    //创建学生的实验记录步骤记录
    return request({
      url: '/api/StudentExperiment/CreateStudentExperimentStep',
      method: 'post',
      data: data,
    })
  },
  TeacherExperimentCreateStudentExperimentStep(data) {
    //创建教师的实验记录步骤记录
    return request({
      url: '/api/TeacherExperiment/CreateTeacherExperimentStep',
      method: 'post',
      data: data,
    })
  },

  StudentExperimentStepsListForStudentExperiment(data) {
    //学生的实验记录步骤记录列表
    return request({
      url: '/api/StudentExperiment/StepsListForStudentExperiment',
      method: 'post',
      data: data,
    })
  },
  TeacherExperimentStepsListForStudentExperiment(data) {
    //教师的实验记录步骤记录列表
    return request({
      url: '/api/TeacherExperiment/StepsListForTeacherExperiment',
      method: 'post',
      data: data,
    })
  },

  StudentExperimentFinishStudentExperiment(data) {
    //完成学生的实验记录 ,返回报告id,如果当前student_experiment_Id存在report,则直接返回,否则新建report,再返回然后拿着返回的report_IdModel前往查看报告详情页面,调用report.fetchModel方法 获取报告的数据进行显示/编辑
    return request({
      url: '/api/StudentExperiment/FinishStudentExperiment',
      method: 'post',
      data: data,
    })
  },
  TeacherExperimentFinishTeacherExperiment(data) {
    //完成教师的实验记录 ,返回报告id,如果当前student_experiment_Id存在report,则直接返回,否则新建report,再返回然后拿着返回的report_IdModel前往查看报告详情页面,调用report.fetchModel方法 获取报告的数据进行显示/编辑
    return request({
      url: '/api/TeacherExperiment/FinishTeacherExperiment',
      method: 'post',
      data: data,
    })
  },
  
};
